<f:view xmlns:f="http://java.sun.com/jsf/core"
		xmlns:h="http://java.sun.com/jsf/html"
        xmlns:ui="http://java.sun.com/jsf/facelets"
		xmlns:af="http://myfaces.apache.org/trinidad"
		xmlns:afh="http://myfaces.apache.org/trinidad/html">
<ui:composition template="/carnot/include/history-template.xhtml">
    <f:loadBundle basename="ProcessPortalMessages" var="localeBundle" />
    <f:loadBundle basename="CommonMessages" var="commonMsg" />
    <ui:define name="menueTextBar">
        <af:commandNavigationItem id="moveButtonUp" styleClass="historyNavBarIcon"
            disabled="#{processHistoryDialog.rootProcess}" immedtiate="true"
            partialSubmit="true" action="#{processHistoryDialog.moveProcessUp}"
            rendered="#{processHistoryDialog.graphVisible}">
            <af:image source='#{processHistoryDialog.rootProcess ? "/images/icons/active/upLight.gif" : "/images/icons/active/upGrey.gif"}'/>
        </af:commandNavigationItem>
        <af:commandNavigationItem id="moveButtonDown" styleClass="historyNavBarIcon"
            disabled="#{processHistoryDialog.noSubProcessAvailable}" immediate="true"
            partialSubmit="true" action="#{processHistoryDialog.moveProcessDown}"
            rendered="#{processHistoryDialog.graphVisible}">
            <af:image source='#{processHistoryDialog.noSubProcessAvailable ? "/images/icons/active/downLight.gif" : "/images/icons/active/downGrey.gif"}'/>
        </af:commandNavigationItem>
    </ui:define>
    <ui:define name="pageContent">
        <af:image binding="#{processHistoryDialog.liveDiagramImage}" id="liveDiagramImage"
            partialTriggers=":NavigationTabBar:viewAsTableTab :NavigationTabBar:viewAsDiagramTab"
            source="#{portalHeader.liveDiagramsUrl}?activityInstanceOid=#{processHistoryDialog.processHierarchy.currentItem.second.OID}" />
    </ui:define>
</ui:composition>
</f:view>